[Unit]
Description=Etcd Server
After=network.target
After=network-online.target
Wants=network-online.target

[Service]
Type=notify
WorkingDirectory={{ etcd_datadir }}
User={{ etcd_user }}
TimeoutStartSec=10
# set GOMAXPROCS to number of processors
ExecStart=/bin/bash -c "GOMAXPROCS={{ etcd_gomaxprocs }} {{ software_install_path }}/etcd/etcd --config-file=\"{{ etcd_confdir }}/etcd.conf\""
Restart=on-failure
LimitNOFILE=65536

[Install]
WantedBy=multi-user.target
